<template>
  <div class="category">
    <h3>{{title}}</h3>
    <!-- 插槽标记（挖个坑，等父那边填入内容） -->
    <slot>默认内容</slot>
  </div>
</template>

<script>
  export default {
    name:'Category',
    props:['title'],
  }
</script>

<style scoped>
  .category {
    width: 200px;
    height: 300px;
    background-color: skyblue;
    box-shadow: 0 0 10px;
    border-radius: 10px;
    padding: 10px;
  }
  h3 {
    background-color: orange;
    text-align: center;
    font-size: 20px;
  }
  img,video {
    width: 100%;
  }
</style>